<?php

namespace App\Library\Requests\Coupon;

use App\Library\Requests\Base\BasePageRequest;
use App\Library\Rules\PriceRule;
use Illuminate\Http\JsonResponse;

class UserCouponPageRequest extends BasePageRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'status' => 'required|integer|in:0,1,2',
            'price' => ['nullable', new PriceRule]
        ]);
    }
}
